import 'package:json_annotation/json_annotation.dart';

part 'popularity.g.dart';

@JsonSerializable()
class PopularityModel {

  String name;

  String imgUrl;

  int price;

  PopularityModel({required this.name, required this.imgUrl, required this.price});

  factory PopularityModel.fromJson(Map<String, dynamic> json) => _$PopularityModelFromJson(json);

  Map<String, dynamic> toJson() => _$PopularityModelToJson(this);

  @override
  String toString() {
    return toJson().toString();
  }
}